package com.zkyc.framework.common.vo.website;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author bing.bai
 * @create 2022/5/25
 */
@TableName("web_content")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WebContentPublishVo {

    /**
     * 模块id
     */
    @TableId(type=IdType.AUTO)
    private Integer id;

    /**
     * 栏目id
     */
    private Integer columnId;

    /**
     * 网站id
     */
    private Integer websiteId;

    /**
     * 中心id
     */
    private Integer centerId;

    /**
     * 内容
     */
    @ApiModelProperty(value = "content")
    private String content;

    /**
     * 标题
     */
    @ApiModelProperty(value = "content_title")
    private String contentTitle;
    /**
     * 摘要
     */
    private String contentAbstract;

    /**
     * 内容时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date contentDate;


    /**
     * 类型 1.banner 2.富文本 3.图片
     */
    private Integer contentType;

    /**
     * 排序
     */
    private Integer contentOrder;

    /**
     * 状态
     */
    private Integer status;

    @ApiModelProperty(value = "pic_url")
    private String picUrl;

    @TableField(exist = false)
    private JSONArray picUrlJson;

    @TableField(exist = false)
    private String centerName;

    /**
     * 发布人
     */
    private String createdBy;

    private String publishTime;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")

    private Date gmtCreated;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdated;
    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer isDeleted;

    private String path;


    @TableField(exist = false)
    private List<List<Integer>> tagId;

    private String originalContent;

    private  String jumpUrl;

    private  Integer jumpOrNot;

}
